Page({
  data: {
    
    tab_one: false,
    tab_two: true,
    tab_three: false
  },

  switch_tab: function (e) {
    console.log(e)
    var tab = e.currentTarget.dataset.tab

    if (tab == "1") {
      wx.redirectTo({
        url: '../habit/habit',
      })
    }

    if (tab == "3") {
      var that = this
      wx.redirectTo({
        url: '../habit_mine/habit_mine',
      })
    }
  },
})